package nl.ypmits.utils.as3.view.simpledraw {
	import flash.display.Sprite;

	/**
	 * @author Dave Lenz
	 */
	public class DeleteCircle extends Sprite {

		public function DeleteCircle( size : Number = 12, align : String = "CENTER" ) {
			var holder : Sprite = new Sprite( );
			addChild( holder );
			
			holder.graphics.beginFill( 0xFF0000 );
			holder.graphics.drawCircle( 0, 0, size * .5 );
			holder.graphics.endFill( );
			holder.graphics.beginFill( 0xFFFFFF );
			holder.graphics.drawRect( -(size * .5) + 3, -(size / 3) * .5, size / 3 * 2, size / 3 );
			holder.width = size;
			holder.height = size;
			
			SimpleDrawAUtil.align( holder, align);
		}
	}
}
